package com.tiancheng.trade.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tiancheng.trade.order.mapper.ReportRecordMapper;
import com.tiancheng.trade.order.model.ReportRecord;
import com.tiancheng.trade.order.service.IReportRecordService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: likailun
 * @Description:
 * @Date: create in 2022/12/29 19:17
 */
@Service
public class ReportRecordServiceImpl implements IReportRecordService {
    @Resource
    private ReportRecordMapper reportRecordMapper;
    @Override
    public void save(ReportRecord reportRecord) {
        reportRecordMapper.insert(reportRecord);
    }

    @Override
    public List<ReportRecord> queryByOrderId(String orderId) {
        return reportRecordMapper.selectList(new QueryWrapper<ReportRecord>().eq("order_id",orderId));
    }
}
